// 数组去重
function aryUnique (ary) {
    return [...new Set(ary)];
}

// 取出某个localstorage
function getLocalStorage (key) {
    return window.JSON.parse(window.localStorage.getItem(key) || '[]')
}

// 设置某个localstorage
function setLocalStorage (key, value) {
    return window.localStorage.setItem(key, window.JSON.stringify(value));
}

export {
    aryUnique,
    getLocalStorage,
    setLocalStorage
}